package cn.mesmile.juc.demo;

/**
 * @author zb
 * @date 2021/8/15 14:42
 * @Description
 */
public enum  ThreadState {

    /**
     *  线程的状态
     */
    NEW("新建"),
    RUNNABLE("准备就绪"),
    BLOCKED("阻塞"),
    WAITING("等待"),
    TIMED_WAITING("等待过期"),
    TERMINATED("终止");


    String description;

    ThreadState(String description){
        this.description = description;
    }

    public String getDescription(){
        return description;
    }

}
